package example;

//import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import example.config.MyWebAppConfigurer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

//@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
//@MapperScan("example.mapper")
@SpringBootApplication()
@EnableJpaRepositories
//@NacosPropertySource(dataId = "order.dev.yaml", autoRefreshed = true)
public class DemoApplication {

//    @Value("${server.port}")
//    //获取主机端口
//    private static String port;
//
//    @Value("${server.servlet.context-path}")
//    private static String contextPath;
//@Autowired
//private static MyWebAppConfigurer config;
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
//        http://localhost:8081/HelloWorldSpringBoot/user/user_list
        System.out.print("http://localhost:8081/HelloWorldSpringBoot");
    }

}
